/**
* ...
* @author Default
* @version 0.1
*/

/** 
* @mxmlc -source-path=C:\\Program Files\\FlashDevelop\\FirstRun\\Library\\AS3\\classes\\
*/

package  {
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.media.Sound;
	import flash.net.URLRequest;
	import org.flashdevelop.utils.FlashConnect;

	public class mytile01 extends Sprite{
		public var xmlmap:XML = new XML();
		public var numberarray:Array = new Array();
		public var abcarray:Array = new Array();
		public var mapimage:BitmapData;
		public var maptile:BitmapData;
		public var imagedata:BitmapData;
		public var screendata:Bitmap;
		public var maprow:int = 5;
		public var mapcol:int = 5;
		public var tilesizeheight:int = 32;
		public var tilesizewidth:int = 32;
		public var screenmapheight:int = maprow*tilesizeheight;
		public var screenmapwidth:int = mapcol*tilesizewidth;
		
		public function mytile01() {
			numberarray = [[0,0,0,0,0],[0,0,0,0,0]];
			FlashConnect.trace('Start');
			FlashConnect.trace(numberarray.length + "|");
			imagedata = new BitmapData(screenmapwidth,screenmapheight,false,0x000000);//Create data image
			
			screendata =  new Bitmap(imagedata); //covert into image 
			addChild(screendata);
		}
		
	}
	
}

